#ifndef MYPLAY_H
#define MYPLAY_H

#include <QWidget>
#include <QProcess>
#include <QSlider>
#include <QLabel>
#include <QPushButton>
#include <QTime>
#include <QMainWindow>
#include <QMenu>


class MyPlay : public QMainWindow
{
    Q_OBJECT
public:
    explicit MyPlay(QWidget *parent = 0);

    void play(QString filename);

    QTime int_to_time(int second);

private:
    int flag = 0;
    QWidget *widget;
    QMenu *menu;
    QProcess *playProcess;
    QSlider *slider;
    QWidget *screamShow;
    QString currentStr;
    QString totalTime;
    QLabel *timelab;
    QPushButton *btnstop;
    QPushButton *btnleft ;
    QPushButton *btnplay ;
    QPushButton *btnright;
    QPushButton *btnvoice;
    QSlider *voiceSlider;
    QString _strDir;
    bool playStatus ;

signals:

public slots:
    void slotSliderCtl(int);
    void slotOpen();
    void dataRecieve();
    void pushStopButton();
    void pushCloseButton();
};

#endif // MYPLAY_H
